package designMode.adapterPattern;

/**
 * @ClassName Test
 * @Description  适配器  将怪兽伪装成鸭子，但是还是怪兽的方法，
 * @Author LIBOFEI
 * @Date 2020/6/25 21:25
 * @Version 1.0
 **/
public class Test {

    public static void main(String[] args) {
        WildTurkey wildTurkey = new WildTurkey();
        Duck adpter = new TurkeyAdapter(wildTurkey);
        adpter.quack();
        adpter.fly();
    }
}
